package com.jingdianjichi.subject.converter;

import com.jingdianjichi.subject.eneity.SubjectInfoBO;
import com.jingdianjichi.subject.eneity.SubjectLabelBO;
import com.jingdianjichi.subject.eneity.SubjectOptionBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectInfo;
import com.jingdianjichi.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoConverter {
    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);
    SubjectInfo converterBoToInfo(SubjectInfoBO subjectInfoBO);

    SubjectInfoBO converterOptionAndInfoToBo(SubjectOptionBO subjectOptionBO,SubjectInfo subjectInfo);

    List<SubjectInfoBO> converterSubjcetsToBos(List<SubjectInfo> subjectInfos);
}
